package com.yuanrui.auth.domain.convert;

import com.yuanrui.auth.basic.entity.AuthPermission;
import com.yuanrui.auth.basic.entity.AuthRolePermission;
import com.yuanrui.auth.domain.entity.AuthPermissionBO;
import com.yuanrui.auth.domain.entity.AuthRolePermissionBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthRolePermissionConverter {
    AuthRolePermissionConverter INSTANCE = Mappers.getMapper(AuthRolePermissionConverter.class);

    //将用户信息转换为用户信息BO
    AuthRolePermissionBO convertToBO(AuthRolePermission authRolePermission);

    //将用户信息BO转换为用户信息
    AuthRolePermission convertToEntity(AuthRolePermissionBO authRolePermissionBO);
}
